{% extends "shm/base.html" %}

{% block department_list %}
    <h3>{{ department.name }}</h3>
    
    {% for item in department_tree %}
        <div style="padding-left:{{ item.csslevel }}px" class="tree_item">
            <a href="{% url department_detail department.id item.id %}">{{ item.name }}</a>
        </div>
    {% endfor %}
    
{% comment %}
    <p>
        {% if phone %}
            {% for item in phone %}
                {{ item.number }}
            {% endfor %}
        {% endif %}
    </p>
    <h5>Сотрудники</h5>
    <p>
        {% if employee %}
            {% for item in employee %}
                <p>{{ item.name1 }} {{ item.name2 }}<br/>
                <span>{{ item.titie }}</span></p>
                <br/><br/>
            {% endfor %}
        {% endif %}
    </p>
{% endcomment %}    
{% endblock %}
